package com.lvmama.task.common.service;

/**
 * Created by troy on 2016/7/4.
 * kouhongyu@163.com
 */
public interface TaskScheduleService {

    /**
     * 心跳
     *
     * @param jobNode
     * @param owner
     * @param ip
     * @param info
     */
    void tick(String jobNode,String owner, String ip, String info);

    /**
     * 选举
     *
     * @param jobNode
     * @param owner
     */
    void election(String jobNode, String owner);

    /**
     * 任务调度
     * @param jobNode
     * @param owner
     */
    void schedule(String jobNode, String owner);
}
